textbtree: short-circuit visibility check when possible
authorChristian Hergert <chergert@redhat.com>
Wed, 18 Mar 2020 18:32:46 +0000 (11:32 -0700)
committerChristian Hergert <chergert@redhat.com>
Wed, 18 Mar 2020 18:32:46 +0000 (11:32 -0700)
commit6c8d47f5855cfbed8298a65d9d5315a4655468d3
treea2e2092e086a9c7d618e2c9ae1fc7b5a659e8a7a
parent1bc1b82256582ac0ac0ac422a14ec198c12c7b69
textbtree: short-circuit visibility check when possible

If we have never seen a GtkTextTag in the GtkTextTagTable with the
invisible bit set, then we do not need to go through the process of
checking the accumulated tags.

Not using invisible tags is overwhelmingly the common case.
gtk/gtktextbtree.c
gtk/gtktexttagtable.c
gtk/gtktexttagtableprivate.h